package io.renren.modules.upk.service.impl;

import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.mapper.EntityWrapper;
import com.baomidou.mybatisplus.plugins.Page;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import io.renren.common.utils.PageUtils;
import io.renren.common.utils.Query;

import io.renren.modules.upk.dao.UpkBrandDao;
import io.renren.modules.upk.entity.UpkBrandEntity;
import io.renren.modules.upk.service.UpkBrandService;


@Service("upkBrandService")
public class UpkBrandServiceImpl extends ServiceImpl<UpkBrandDao, UpkBrandEntity> implements UpkBrandService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        Page<UpkBrandEntity> page = this.selectPage(
                new Query<UpkBrandEntity>(params).getPage(),
                new EntityWrapper<UpkBrandEntity>()
        );

        return new PageUtils(page);
    }

}
